#ifndef FOOD_SOURCE_H
#define FOOD_SOURCE_H

#include "GameObject.h"
#include "GLCuboid.h"
#include <vector>

class FoodSource : public GameObject
{
public:
	FoodSource(const Vec3f& pos, const std::string& texturePath, int id);

	void Draw() override;
	void Update();
	bool IsDepleted() const;
	float GetContactRadius();
	float GetContactRadiusSqr();

	void CreateLeaves();
	void RemoveNourishment();

private:
	GLCuboid m_cuboid;

	std::vector<Vec3f> m_leafVec;
	bool m_depleted;
	int m_nourishmentRemaining; 
	int m_decayTime;
	float m_contactRadius;
	float m_contactRadiusSqr;
};

#endif